package com.dji.uxsdkdemo;

import android.content.Context;
import android.widget.Toast;

public class Utils {
    public static final String ws = "ws://82.157.123.54:9010/ajaxchattest";//websocket测试地址
//    public static final String ws = "ws://192.168.1.101:8080/analysis/phonewebsocket/1410553097238925314?token=36a7b73f8a38c6e2292c88c297d79692";

    public static void showToast(Context ctx, String msg) {
        Toast.makeText(ctx, msg, Toast.LENGTH_LONG).show();
    }
	public static void addLineToSB(StringBuffer sb, String name, Object value) {
        if (sb == null) return;
        sb.
        append((name == null || "".equals(name)) ? "" : name + ": ").
        append(value == null ? "" : value + "").
        append("\n");
    }
	
}
